package com.lz.ub


//最大USB蓝牙设备数量
const val MAX_USB_DEVICE_SIZE = 5

//单台蓝牙设备最大连接从设备的数量
const val MAX_DEVICE_SIZE = 6

//蓝牙设备串口相关设置
const val UBC_BAUD_RATE = 115200
const val UBC_DATA_BITS = 8
const val UBC_STOP_BITS = 1
const val UBC_PARITY = 0

//重启时的指令超时时间
const val COMMAND_START_TIMEOUT = 200L

//写入超时
const val COMMAND_WRITE_TIMEOUT = 500

//AT开启
const val COMMAND_START = "+++"

//重启等待时间, 当 > 连接指令延时时间
const val COMMAND_RESTART_DELAYED = 500L

//连接指令响应完后的延时处理,
const val COMMAND_CONNECTED_DELAYED = 100L

//写出指令响应后的延时处理
const val COMMAND_WRITE_DELAYED = 50L

//重启
const val COMMAND_RESTART = "AT+RESTART\r\n"

//取消自动重连
const val COMMAND_CANCEL_AUTO = "AT+DEV_DEL=ALL\r\n"

//断开所有
const val COMMAND_DISCONNECT = "AT+DISCONNECT\r\n"

//开始扫描
const val COMMAND_START_SCAN = "AT+SCAN=1\r\n"

//停止扫描
const val COMMAND_STOP_SCAN = "AT+SCAN=0\r\n"
